package com.chinanet.service.faultanticipate.controll;

import java.util.Random;

/**
 * Created by moon on 16/9/27.
 */
public class IdStrategy {
    public static int getId(){
        Random ran=new Random();
        int tp = Integer.parseInt((System.currentTimeMillis()+"").substring(6))*1000+ran.nextInt(1000);
        return tp>0?tp:-tp;
    }
    
}
